﻿@model BugSplattr.Models.BugSplatIndexVM
@{
    ViewBag.Title = "Bugs";
}

<h2>Only the bugs</h2>
<div>
    <table class="table table-striped table-responsive">
        <thead>
            <tr>
                <td>Action</td>
                <td>Title</td>
                <td>Priority</td>
                <td>Steps to Reproduce</td>
            </tr>
            @foreach (var t in Model.Bugs)
            {
                <tr><td>@Html.ActionLink("Edit", "Update", "BugSplat", new { Id = t.Id }, new { @class = "btn btn-default" }) @Html.ActionLink("Delete", "Delete", "BugSplat", new { Id = t.Id }, new { @class = "btn btn-danger" })</td> <td>@t.Title</td><td>@t.Priority</td><td>@t.StepsToReproduce</td></tr>
            }
        </thead>
    </table>
    <br />
</div>